<script setup lang="ts">
import type { Context } from '../types';
import Lines from './Lines.vue';
import Options from './Options.vue';

defineProps({
  context: {
    type: Array as () => Context,
    required: true
  }
});
</script>

<template>
  <template v-for="(item, index) in context" :key="index">
      <Lines v-if="item.type === 'lines'" :lines="item.lines"></Lines>
      <Options v-else-if="item.type === 'options'" :options="item.options" :default-active-index="item.optionBlockSetting?.activeIndex" active></Options>
  </template>
</template>

<style scoped>

</style>
